package com.job.admin.message.pojo;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.data.annotation.Id;
import org.springframework.data.mongodb.core.mapping.Document;
import org.springframework.data.mongodb.core.mapping.Field;

import java.util.List;

@Data
@NoArgsConstructor
@AllArgsConstructor
@Document(value = "message")
/*
* mongodb的实体类
* */
public class Message {
    @Id
    private String id;
    @Field("user_id")
    private String userId;
    @Field("connect")
    private List<ConnectItem> connect;
}
